<div class="syn-title">数据湖同步</div>
<div *ngIf="errMessage == ''">
    <p class="syn-contetn" *ngIf="status === -1">从数据湖同步最新人员和组织架构数据，同步过程中请勿刷新或关闭当前页面</p>
    <p class="syn-contetn" *ngIf="status === 0">数据同步中，请勿刷新或者关闭当前页面</p>
    <p class="syn-contetn" *ngIf="status === 1">人员和组织架构数据已同步完成</p>
    <p class="syn-contetn" *ngIf="status === 2">数据同步失败，请检查网络设置（数据同步失败，请检查FTP服务器设置</p>
</div>

<p style="color:red;" class="syn-contetn" *ngIf="errMessage !== ''">{{errMessage}}</p>
<div class="syn-btn">
    <div *ngIf="status === -1 || status === 2">
        <button class="btn btn-secondary" (click)="close()">取消</button>
        <button class="ml-2 btn btn-primary" (click)="startSynchronize()">开始同步</button>
    </div>

    <button *ngIf="status === 0 && errMessage==''" class="ml-2 btn btn-secondary" disabled>同步中···</button>
    <button *ngIf="status === 1 || errMessage!=''" class="ml-2 btn btn-primary" (click)="close()">确定</button>
</div>